/*
 *
 *
 *
 *
 */

package com.usefullc.user.domain;

import com.usefullc.system.entity.BaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.persistence.Column;
import javax.persistence.Entity;

@Entity(name="u_outer_user")
@ApiModel("第三方用户")
@Data
public class OuterUser extends BaseEntity {

    @ApiModelProperty(notes = "用户ID")
    @Column(length = 20,nullable = false)
    private Long userId;

    @ApiModelProperty(notes = "昵称")
    @Column(length = 100,nullable = false)
    private String nickname;

    @ApiModelProperty(notes = "绑定类型")
    @Column(length = 4,nullable = false)
    private Integer bindType;

    @ApiModelProperty(notes = "状态")
    @Column(length = 4,nullable = false)
    private Integer status;

    @ApiModelProperty(notes = "头像")
    @Column(length = 200)
    private String avatar;

    @ApiModelProperty(notes = "OpenId")
    @Column(length = 50,nullable = false)
    private String openId;


}
